home *** CD-ROM | disk | FTP | other *** search
/ Champak 83 / (Vol 83) My Disc.iso / Games / hello_kitty.swf / scripts / frame_8 / DoAction.as
Encoding:
Text File  |  2008-08-07  |  1.5 KB  |  57 lines

  1. fscommand("allowscale",true);
  2. myMap1 = [[1,1,5,5,5,5,5,5,1,1],[1,2,1,5,5,5,5,1,0,1],[1,0,1,5,5,5,5,1,0,1],[1,0,0,1,1,1,1,1,0,1],[1,0,0,0,0,0,0,0,0,1],[5,1,0,0,0,0,0,0,1,5],[5,5,1,0,0,1,1,1,5,5],[5,5,5,1,1,5,5,5,5,5],[5,5,5,5,5,5,5,5,5,5]];
  3. game = {tileW:45,tileH:45,currentMap:1,points:false};
  4. game.Tile0 = function()
  5. {
  6. };
  7. game.Tile0.prototype.walkable = true;
  8. game.Tile0.prototype.frame = 1;
  9. game.Tile1 = function()
  10. {
  11. };
  12. game.Tile1.prototype.walkable = false;
  13. game.Tile1.prototype.frame = 2;
  14. game.Tile2 = function()
  15. {
  16. };
  17. game.Tile2.prototype.walkable = false;
  18. game.Tile2.prototype.frame = 3;
  19. game.Tile5 = function()
  20. {
  21. };
  22. game.Tile5.prototype.walkable = false;
  23. game.Tile5.prototype.frame = 5;
  24. unlockY = 1;
  25. unlockX = 1;
  26. char = {xtile:8,ytile:1,speed:3};
  27. startingXtile = char.xtile;
  28. startingYtile = char.ytile;
  29. mylifes.gotoandstop(_root.lifes);
  30. myEnemies = [[1,1,4],[3,1,3],[2,2,5]];
  31. game.Enemyp1 = function()
  32. {
  33. };
  34. game.Enemyp1.prototype.xMove = 1;
  35. game.Enemyp1.prototype.yMove = 0;
  36. game.Enemyp1.prototype.speed = 2;
  37. game.Enemyp2 = function()
  38. {
  39. };
  40. game.Enemyp2.prototype.xMove = 1;
  41. game.Enemyp2.prototype.yMove = 0;
  42. game.Enemyp2.prototype.speed = 1;
  43. game.Enemyp3 = function()
  44. {
  45. };
  46. game.Enemyp3.prototype.xMove = 1;
  47. game.Enemyp3.prototype.yMove = 1;
  48. game.Enemyp3.prototype.speed = 1;
  49. myItems = [[1,4,6]];
  50. game.Item1 = function()
  51. {
  52. };
  53. game.Item1.prototype.points = false;
  54. unlock = true;
  55. _root.buildMap(_root["myMap" + game.currentMap]);
  56. stop();
  57.